package com.ming.reggie.mapper;

import com.ming.reggie.entity.Orders;
import org.apache.ibatis.annotations.Insert;

public interface OrderMapper {

    /**
     * 插入订单主表数据
     * @param orders
     */
    @Insert("insert into orders values (#{id}, #{number}, #{status}, #{userId}, #{addressBookId}, #{orderTime}, #{checkoutTime}, #{payMethod}, #{amount}, #{remark}, #{phone}, #{address}, #{userName}, #{consignee})")
    Integer save(Orders orders);
}
